Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug 68237] CustomHeight attribute of row for SXSSFWorkbook is wrong #1282

Merged

Conversation

superrnovae
Copy link
Contributor

@tonyqus tonyqus added this to the NPOI 2.7.1 milestone Mar 6, 2024

_objectToTest.WriteRow(0, row);
_objectToTest.Close();

var lines = File.ReadAllLines(_objectToTest.TemporaryFilePath());

Assert.True(lines.Length == 2);
Assert.AreEqual("<row r=\"" + 1 + "\" customHeight=\"true\" ht=\"" + row.HeightInPoints + "\">", lines[0]);
Assert.AreEqual("<row r=\"" + 1 + "\" customHeight=\"1\" ht=\"" + row.HeightInPoints.ToString().Replace(',', '.') + "\">", lines[0]);
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Will it be better to use InvariantCulture instead of comma to point replacement?

@tonyqus
Copy link
Member

tonyqus commented Apr 23, 2024

@superrnovae Can you help answer the review question?

@tonyqus
Copy link
Member

tonyqus commented May 5, 2024

LGTM

@tonyqus tonyqus merged commit e7b5b4e into nissl-lab:master May 5, 2024
2 of 3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants